CONTROL.TEXTREPLACE Function
Syntax
.TEXTREPLACE( Start_Position as N, Length as N, New_Text as C [, Processed as L ] )
Arguments
- Start_Position
The beginning character to select. The first character is number 1.
- Length
Optional. Default = 0. The number of characters to select. Enter -1 to select all characters.
- New_Text
The text to substitute for the selection.
Description
The .TEXTREPLACE() method places text into a text control.
Example
dim ptr as P dim fld as P ptr = form.load("Customer Information") ptr.show() fld = ptr.Child("Lastname") ' assume the field contains "lastname" fld.TextReplace(5, 0, "insert") -> "lastinsertname" fld.textreplace(5, 6, "") -> "lastname"
Limitations
Desktop applications only.
See Also